﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using BSDS.Core.Data.Local;
using BSDS.Core.Data.Local.Jobs;
using BSDS.Core.Data.Local.Schema;
using BSDS.Core.Data.Local.Xml.Parsing;
using BSDS.Core.Data.Remote.Account;
using BSDS.Core.Data.Remote.Download;
using BSDS.Core.Data.Remote.Geocoding.Parsing;
using BSDS.Core.Data.Remote.Geocoding.Serialization;
using BSDS.Core.Data.Remote.Upload;
using BSDS.Core.Data.TemporaryFiles;
using BSDS.Core.Infrastructure.RemoteCommunication;
using BSDS.Core.Infrastructure.TransferProgress;
using BSDS.Core.Intialization;
using BSDS.Core.Model.Services;
using BSDS.Core.Model.Services.Geocoding;
using BSDS.Core.Model.Services.Jobs;
using BSDS.Core.Model.Services.Uploading;
using BSDS.Core.Model.Services.Uploading.DataProviders;
using BSDS.Core.Services.BingRestApi;

namespace BSDS.WindowsConsole
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void btnDownloadCheckedChanged(object sender, RoutedEventArgs e)
        {
            CheckBox self;
            if(sender is CheckBox)
            {
                self = (CheckBox) sender;
                if (self.IsChecked == true)
                {
                    label1.Content = "File to download";
                }
            }
        }

        private void btnGeocodeCheckedChanged(object sender, RoutedEventArgs e)
        {
            CheckBox self;
            if (sender is CheckBox)
            {
                self = (CheckBox)sender;
                if (self.IsChecked == true)
                {
                    label1.Content = "File to upload";
                }
            }
        }

        private void ListData(object sender, RoutedEventArgs e)
        {
            using(var bsdsEngine = new BsdsEngine())
            {
                bsdsEngine.Initialize();
            }
        }
    }
}
